{extend name="base" /}
{block name="body"}

<div class="am-padding am-padding-bottom-0">
	<strong class="am-text-primary am-text-lg">留言管理</strong> / <small>编辑</small>
</div>

<div class="am-padding am-btn-toolbar">
	<div class="am-btn-group am-btn-group-xs">
		<a href="{:url('admin/Message/index')}" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 列表</a>
		<button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
	</div>
</div>

<form class="am-form"  action="{:url('admin/Message/edit')}" method="post">
	<input type="hidden" name="id" value="{$info.id}">
	<fieldset>


		<div class="am-form-group">
			<div class="am-input-group">
				<span class="am-input-group-label">称呼</span>
				<input type="text" name="name" value="{$info.name}" class="am-form-field" placeholder="称呼">
			</div>
		</div>

		<div class="am-form-group">
			<div class="am-input-group">
				<span class="am-input-group-label">电话</span>
				<input type="text" name="tel" value="{$info.tel}" class="am-form-field" placeholder="电话">
			</div>
		</div>
		<div class="am-form-group">
			<div class="am-input-group">
				<span class="am-input-group-label">手机</span>
				<input type="text" name="mobile" value="{$info.mobile}" class="am-form-field" placeholder="手机">
			</div>
		</div>
		<div class="am-form-group">
			<div class="am-input-group">
				<span class="am-input-group-label">邮箱</span>
				<input type="email" name="email" value="{$info.email}" class="am-form-field" placeholder="邮箱">
			</div>
		</div>


	

		<div class="am-form-group">
			<div class="am-input-group">
				<span class="am-input-group-label">IP</span>
				<input type="text" name="ip" value="{$info.ip}" class="am-form-field" placeholder="IP地址">
				<span class="am-input-group-label">{$info.ip_address}</span>
			</div>
		</div>


		<div class="am-form-group">
			<div class="am-input-group">
				<span class="am-input-group-label">留言内容</span>
				<textarea name="message" rows="5" placeholder="留言">{$info.message}</textarea>
			</div>
		</div>

	

		<div class="am-form-group">
			<div class="am-input-group">
				<span class="am-input-group-label">状态</span>
				<div class="am-form-field">
					<label class="am-radio-inline">
						<input type="radio" name="status" value="1" data-am-ucheck {if condition="$info.status==1"}checked{/if}> 已读
					</label>
					<label class="am-radio-inline">
						<input type="radio" name="status" value="0" data-am-ucheck {if condition="$info.status==0"}checked{/if}> 未读
					</label>
				</div>
			</div>
		</div>
		<p><button type="reset" class="am-btn am-btn-default">重置</button> <button type="submit" lay-submit lay-filter="submit" class="am-btn am-btn-default">更新</button></p>
		
		
		
	</fieldset>
</form>


{/block}